home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12117 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  725 b 

  1. Path: news1.sympatico.ca!news
  2. From: Gisele Swinson <gisele.swinson@sympatico.ca>
  3. Newsgroups: comp.lang.c
  4. Subject: Settle a bet please
  5. Date: 29 Mar 1996 04:26:19 GMT
  6. Organization: Sympatico
  7. Message-ID: <4jfopb$o9n@news1.sympatico.ca>
  8. NNTP-Posting-Host: ppp1046.on.sympatico.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22MII (Windows; I; 16bit)
  13.  
  14. In C language, how do they calculate the length of an array.
  15.  
  16. example
  17.  
  18. To declare a string "My Name"
  19.  
  20. is it char name[7] = "My Name"
  21. or
  22. is it chat Name[8] = "My Name"
  23.  
  24. There is a battle in my class whether to include the NULL in the
  25. array size. 
  26.  
  27. I would appreciate any input you might have.
  28.  
  29. Thanks
  30.  
  31. Gisele
  32.  
  33.